package com.example.hjlquickstartdemo.dao.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.example.hjlquickstartdemo.base.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import java.util.Date;

/**
 * basic_user表
 *
 * @author HeJiaLe
 * @date 2023/07/17 10:56
 **/
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName(value = "basic_user")
public class User extends BaseEntity {
    /**
     * 姓名
     */
    @NotBlank(message = "姓名不能为空")
    private String name;
    /**
     * 身份证id
     */
    @NotBlank(message = "身份证id不能为空")
    private String citizenId;
    /**
     * 生日
     */
    @ApiModelProperty("生日")
    private Date birthday;
}
